using System;
using System.Collections.Generic;
using System.Text;

namespace Objects
{
    public class DanhSachThongTinKhachHang
    {
       #region DanhSachThongTinKhachHang variables

        private String _Ten;
        private DateTime _NgaySinh;
        private String _DiaChiLienLac;
        private String _DienThoaiDD;
        private String _TenChiNhanh;

        private String _TenMauThe;

        private String _MaThanhToan;

        private String _DuongDan;
      
      

        #endregion

        #region DanhSachThongTinKhachHang properties

        public DateTime NgaySinh
        {
            get { return _NgaySinh; }
            set { _NgaySinh = value; }
        }

        public String DienThoaiDD
        {
            get { return _DienThoaiDD; }
            set { _DienThoaiDD = value; }
        }

        public String TenChiNhanh
        {
            get { return _TenChiNhanh; }
            set { _TenChiNhanh = value; }
        }

        public String TenMauThe
        {
            get { return _TenMauThe; }
            set { _TenMauThe = value; }
        }

        public String MaThanhToan
        {
            get { return _MaThanhToan; }
            set { _MaThanhToan = value; }
        }

        public String Ten
        {
            get { return _Ten; }
            set { _Ten = value; }
        }

        public String DiaChiLienLac
        {
            get { return _DiaChiLienLac; }
            set { _DiaChiLienLac = value; }
        }

        //public String DiaChiNguoiNhan
        //{
        //    get { return _DiaChiNguoiNhan; }
        //    set { _DiaChiNguoiNhan = value; }
        //}

        //public String ThongDiep
        //{
        //    get { return _ThongDiep; }
        //    set { _ThongDiep = value; }
        //}

        public String DuongDan
        {
            get { return _DuongDan; }
            set { _DuongDan = value; }
        }

     

        #endregion

        #region IPopulatable<DanhSachThongTinKhachHang> Members

        public DanhSachThongTinKhachHang Populate(System.Data.DataRow reader)
        {
            DanhSachThongTinKhachHang item = new DanhSachThongTinKhachHang();

            item.Ten = Convert.ToString(reader["Ten"].ToString());
            item.DiaChiLienLac = Convert.ToString(reader["DiaChiLienLac"].ToString());
            item.NgaySinh = Convert.ToDateTime(reader["NgaySinh"].ToString());

            item.DienThoaiDD = Convert.ToString(reader["DienThoaiDD"].ToString());
            item.TenChiNhanh = Convert.ToString(reader["TenChiNhanh"].ToString());
            item.TenMauThe = Convert.ToString(reader["TenMauThe"].ToString());
            item.MaThanhToan = Convert.ToString(reader["MaThanhToan"].ToString());
           // item.DiaChiNguoiNhan = Convert.ToString(reader["kh.DiaChi"].ToString());

           //item.ThongDiep = Convert.ToString(reader["ThongDiep"].ToString());
            item.DuongDan = Convert.ToString(reader["DuongDan"].ToString());

            return item;
        }

        #endregion
    }
    
}
